/*
 * Zenlayer.com Inc.
 * Copyright (c) 2014-2020 All Rights Reserved.
 */
package com.shen.core.data.mapper;

import org.apache.ibatis.annotations.UpdateProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

/**
 * @author yangshen
 * @date 2019-09-02 14:22:19
 * @version $ Id: UpdateListMapper.java, v 0.1  yangshen Exp $
 */
@RegisterMapper
public interface UpdateListByIdMapper<T> {
    /**
     * 根据Example条件批量更新实体`record`包含的不是null的属性值
     * @param recordList
     * @return
     */
    @UpdateProvider(type = BatchExampleProvider.class, method = "dynamicSQL")
    int updateBatchByPrimaryKeySelective(List<? extends T> recordList);
}
